package cn.livingCloud.repository;

import cn.livingCloud.dto.Page;
import cn.livingCloud.entity.content.Article;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by DingJie  on 2016/1/14.
 */
@Repository
public interface ArticleMapper {
    void save(Article article);

    Article findByUuid(String uuid);

    List<Article> getArticleList(Page listDto);

    void updatePublish(Article article);

    void update(Article article);

    void delete(String uuid);

    List<Article> getArticlFronteList(Page frontListDto);

    List<Article> findArticleList(@Param("key") String key);
}
